package com.cmc.cloud.cmclink.doc.mapper;

import com.cmc.cloud.cmclink.doc.entity.SoBcrCheckDO;
import com.cmes.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * SO的bcr检查 Mapper
 *
 * @author 招商轮船-管理员
 */
@Mapper
public interface SoBcrCheckMapper extends BaseMapperX<SoBcrCheckDO> {

    /**
     * 删除bCr
     *
     * @param id
     */
    @Delete(" delete from doc_so_bcr_check where so_id =#{soId}")
    void deleteBySoId(@Param("soId") Long id);

    /**
     * 删除bCr
     *
     * @param id
     */
    @Delete(" delete from doc_so_bcr_check where business_id =#{businessId}")
    void deleteByBusinessId(@Param("businessId") Long id);

}
